{% extends "base.html" %}
{% load cms_tags %}
{% block head_quote %}
<meta name="keywords" content="电商优惠,便宜货,优惠信息,打折信息,优惠券,京东优惠信息" />
<meta name="description" content="{% page_attribute "meta_description" %}" />
<link rel="stylesheet" href="//img.ztm.me/css/amazeui.min.css">
<link rel="stylesheet" href="//img.ztm.me/css/wap.css">
<script type="text/javascript" src="//libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script type="text/javascript" src="/static/js/common.js"></script>
{% if jssdk_signature %}
<script type="text/javascript">
// var ua = navigator.userAgent.toLowerCase();
// alert(ua);
  wx.config({
  	debug: false,
  	appId: '{{jssdk_signature.appid}}',
    timestamp: '{{jssdk_signature.timestamp}}',
  	nonceStr: '{{jssdk_signature.nonce}}',
  	signature: '{{jssdk_signature.signature}}',
  	jsApiList: [
  		'checkJsApi',
  		'onMenuShareTimeline',
  		'onMenuShareAppMessage',
  		'onMenuShareQQ',
  		'onMenuShareWeibo',
  		'hideMenuItems',
  		'showMenuItems',
  		// 'hideAllNonBaseMenuItem',
  		// 'showAllNonBaseMenuItem',
  		// 'translateVoice',
  		// 'startRecord',
  		// 'stopRecord',
  		// 'onRecordEnd',
  		// 'playVoice',
  		// 'pauseVoice',
  		// 'stopVoice',
  		// 'uploadVoice',
  		// 'downloadVoice',
  		// 'chooseImage',
  		// 'previewImage',
  		// 'uploadImage',
  		// 'downloadImage',
  		// 'getNetworkType',
  		// 'openLocation',
  		// 'getLocation',
  		// 'hideOptionMen',
  		// 'showOptionMen',
  		// 'scanQRCode',
  		// 'chooseWXPay',
  		// 'openProductSpecificView',
  		// 'addCard',
  		// 'chooseCard',
  		// 'openCard',
      'closeWindow'
  	]
  });
  // wx.ready(function () {
  // 	document.querySelector('#closeWindowButton').onclick = function () {
  //     wx.closeWindow();
  //   };
  // });
</script>
{% endif %}
{% endblock %}

{% block content %}
	{% block body %}
	{% placeholder "body" %}
	{% endblock %}
	<script src="//img.ztm.me/js/amazeui.min.js"></script>
	{% block footer_script %}
	{% placeholder "FOOTER_SCRIPT" %}
	{% endblock %}
{% endblock %}
